package net.ghsoft.Ctrl
{
	import mx.collections.ArrayCollection;
	
	import spark.components.DropDownList;
	
	public class MyDropDownList extends DropDownList
	{
		private var _dropDownValue:String = "";
		public function set dropDownValue(value:String):void
		{
			_dropDownValue = value;
			var arrTemp:Array = _dropDownValue.split("|");
			if(arrTemp.length > 0)
			{
				dataProvider = new ArrayCollection(arrTemp);
				selectedIndex = 0;
			}
		}
		
		public function get dropDownValue():String
		{
			return _dropDownValue;
		}

	}
}